<?php

/**
 * ELoading class
 *
 * @author Julot <andy.julot@gmail.com>
 * @since Thursday, June 30, 2011. 03:25 PM
 */
class ELoading {

	public static function register() {
		$cs = Yii::app()->clientScript;
		$cs->registerCoreScript('jquery');
		$path = Yii::app()->extensionPath . '/ELoading/';
		$asset = Yii::app()->getAssetManager()->publish($path);
		$cs->registerScriptFile($asset . '/jquery.loading.min.js');
		$cs->registerCssFile($asset . '/jquery.loading.css');
	}

}
